home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
t_sys5
/
unixcpio.gz
/
unixnet.cpio
/
atdump.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-11
|
462b
|
29 lines
#include <stdio.h>
#include "global.h"
#include "mbuf.h"
#include "mac_AT.h"
#include "trace.h"
extern FILE *trfp;
at_dump(bpp)
struct mbuf **bpp;
{
struct appletalk ap;
char s[20],d[20];
ntohat(&ap,bpp);
pat(s,ap.source);
pat(d,ap.dest);
fprintf(trfp,"AppleTalk: %s->%s type 0x%x len %u\r\n",s,d,ap.type,
APPLEADDRLEN + len_mbuf(*bpp));
switch(ap.type){
case AIP_TYPE:
ip_dump(bpp);
break;
case AARP_TYPE:
arp_dump(bpp);
break;
}
}